package com.ljw.common.exception;

public enum BizCodeEnum {
    UNKNOW_EXCEPTION(10000,"位置系统异常"),
    VALID_EXCEPTION(10001,"参数格式校验失败"),
    SMS_CODE_EXCEPTION(10002, "验证码评率太高"),
    USER_EXIST_EXCEPTION(15001, "用户已存在"),
    PHONE_EXIST_EXCEPTION(15001, "手机已存在"),
    LOGINCATT_PASSWORD_INVAILD_EXCEPTION(15003,"帐号秘密错误"),
    NO_STOCK_EXCEPTION(21000, "商品库存不足"),
    PRODUCT_UP_EXCEPTION(11000,"商品上架异常");

    private int code;
    private String message;

    BizCodeEnum(int code, String message){
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
